<template>
  <div class="Detail">
    {{msg}}
  </div>
</template>

<script>
  import {mapState, mapGetters, mapActions} from 'vuex'
  export default {
    name: "home",
    components: {},
    computed: {
      ...mapState(['categoryList']),
    },
    data() {
      return {
        msg: 'ProjectList 组件'
      };
    },
    created() {
      let obj = {
        page: 1,
        stype : 2,
        btype : 3,
        categoryId : ''
      }
      this.fetchProjectList(obj)
    },
    methods: {
      ...mapActions([
        'fetchProjectList'
      ])
    }
  };
</script>

<style lang="less" scoped>

</style>
